package com.basic.common.constant;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PumpEquipmentDsConstant {
    //设备正常
    public static final String PRODUCT_STATE_NORMAL = "ZC";
    //设备申请报废
    public static final String PRODUCT_STATE_ERROR = "BF";
    //设备审核撤销通过
    public static final String PRODUCT_STATE_REPEAL = "CXBF";
    //设备台账存到审核类型的数据
    public static final String AUDITING_BUS_TYPE = "SBTZ";
    //未审核
    public static final String AUDITING_STATE_UN_PROCESS = "PENDING";
    //审核不通过
    public static final String AUDITING_STATE_NO = "REJECTED";
    //审核完成
    public static final String AUDITING_STATE_YES = "PASSED";
    //手动录入
    public static final String DATA_TYPE_SDLR = "SDLR";
    public static final String DATA_TYPE_SDLR_ZH = "手动录入";
    //导入
    public static final String DATA_TYPE_DR = "DR";
    public static final String DATA_TYPE_DR_ZH = "导入";
    //设备信息导出名
    public static final String SBXX = "设备信息表";
    //业务名称
    public static final String BUS_NAME1 = "设备报废审核";
    public static final String BUS_NAME2 = "设备报废撤销审核";
    public static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");

    //设备行列名
    public static final String SBXX_COLUMN1 = "设备类型*";
    public static final String SBXX_COLUMN2 = "设备名称*";
    public static final String SBXX_COLUMN3 = "所属泵站*";
    public static final String SBXX_COLUMN4 = "详细地址*";
    public static final String SBXX_COLUMN5 = "经度（数字）";
    public static final String SBXX_COLUMN6 = "纬度（数字）";
    public static final String SBXX_COLUMN7 = "设备型号";
    public static final String SBXX_COLUMN8 = "品牌";
    public static final String SBXX_COLUMN9 = "制造商";
    public static final String SBXX_COLUMN10 = "生产日期";
    public final static String SBXX_COLUMN11 = "联系人";
    public final static String SBXX_COLUMN12 = "联系方式";
    public final static String SBXX_COLUMN13 = "状态*";
    public final static String SBXX_COLUMN14 = "规格";
    public final static String SBXX_COLUMN15 = "主要参数";
    public final static String SBXX_COLUMN16 = "使用年限（数字）";
    public final static String SBXX_COLUMN17 = "启用时间";
    //概览统计的文件名
    public static final String FILE_NAME_GLTJ = "概览统计";
    //人员统计的文件名
    public static final String FILE_NAME_RYTJ = "人员统计";
    //人员统计的列名
    public static final String RYTJ_COLUMN1 = "人员编号";
    //概览统计的列名
    public static final String GLTJ_COLUMN1 = "录入方式";
    public static final String GLTJ_COLUMN2 = "所属泵站";
    public static final String GLTJ_COLUMN3 = "数据数量";
    public static final String GLTJ_COLUMN4 = "操作人";
    public static final String GLTJ_COLUMN5 = "操作时间";

    //设备入库示例数据
    public static final String EXAMPLE_1 = "流量计";
    public static final String EXAMPLE_2 = "示例设备001";
    public static final String EXAMPLE_3 = "润和城一区4号楼泵站(只能添加泵站信息台账存在的泵站)";
    public static final String EXAMPLE_4 = "黑龙江哈尔滨";
    public static final String EXAMPLE_5 = "11.11";
    public static final String EXAMPLE_6 = "11.11";
    public static final String EXAMPLE_7 = "SDLG001";
    public static final String EXAMPLE_8 = "昆仑海岸";
    public static final String EXAMPLE_9 = "海康";
    public static final String EXAMPLE_11 = "示例联系人001";
    public static final String EXAMPLE_12 = "17488888888";
    public static final String EXAMPLE_13 = "正常/报废";
    public static final String EXAMPLE_14 = "规格示例001";
    public static final String EXAMPLE_15 = "主要参数示例001";
    public static final String EXAMPLE_16 = "10";

    public static  List<Object> getExampleData(){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        List<Object> list = new ArrayList<>();
        list.add(EXAMPLE_1);
        list.add(EXAMPLE_2);
        list.add(EXAMPLE_3);
        list.add(EXAMPLE_4);
        list.add(EXAMPLE_5);
        list.add(EXAMPLE_6);
        list.add(EXAMPLE_7);
        list.add(EXAMPLE_8);
        list.add(EXAMPLE_9);
        Date date = new Date();
        try {
            list.add(simpleDateFormat.format(date));
        } catch (Exception e) {
            e.printStackTrace();
        }
        list.add(EXAMPLE_11);
        list.add(EXAMPLE_12);
        list.add(EXAMPLE_13);
        list.add(EXAMPLE_14);
        list.add(EXAMPLE_15);
        list.add(EXAMPLE_16);
        try {
            list.add(simpleDateFormat.format(date));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return list;
    }
    //获取设备模板字段的集合
    public static List<String> getColumnList() {
        List<String> ColumnsList = new ArrayList<>();
        ColumnsList.add(SBXX_COLUMN1);
        ColumnsList.add(SBXX_COLUMN2);
        ColumnsList.add(SBXX_COLUMN3);
        ColumnsList.add(SBXX_COLUMN4);
        ColumnsList.add(SBXX_COLUMN5);
        ColumnsList.add(SBXX_COLUMN6);
        ColumnsList.add(SBXX_COLUMN7);
        ColumnsList.add(SBXX_COLUMN8);
        ColumnsList.add(SBXX_COLUMN9);
        ColumnsList.add(SBXX_COLUMN10);
        ColumnsList.add(SBXX_COLUMN11);
        ColumnsList.add(SBXX_COLUMN12);
        ColumnsList.add(SBXX_COLUMN13);
        ColumnsList.add(SBXX_COLUMN14);
        ColumnsList.add(SBXX_COLUMN15);
        ColumnsList.add(SBXX_COLUMN16);
        ColumnsList.add(SBXX_COLUMN17);
        return ColumnsList;
    }

    //获取人员统计列
    public static List<String> getRYTJColumnList() {
        List<String> RYTJColumnList = new ArrayList<>();
        RYTJColumnList.add(RYTJ_COLUMN1);
        RYTJColumnList.add(GLTJ_COLUMN4);
        RYTJColumnList.add(GLTJ_COLUMN1);
        RYTJColumnList.add(GLTJ_COLUMN2);
        RYTJColumnList.add(GLTJ_COLUMN3);
        return RYTJColumnList;
    }

    public static List<String> getGLTJColumnList() {
        List<String> RYTJColumnList = new ArrayList<>();
        RYTJColumnList.add(GLTJ_COLUMN1);
        RYTJColumnList.add(GLTJ_COLUMN2);
        RYTJColumnList.add(GLTJ_COLUMN3);
        RYTJColumnList.add(GLTJ_COLUMN4);
        RYTJColumnList.add(GLTJ_COLUMN5);
        return RYTJColumnList;
    }
}
